# Maintainer: Benjamin Chretien <chretien@lirmm.fr>
# Contributor: Rafal Brzegowy <rafal.brzegowy@yahoo.com>

_realname=cusp
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.5.1
pkgrel=1
pkgdesc="A C++ Templated Sparse Matrix Library (mingw-w64)"
arch=('any')
url='http://cusplibrary.github.io'
license=('Apache')
makedepends=()
#depends=('cuda')

_dir="cusplibrary-${pkgver}"
source=("https://github.com/cusplibrary/cusplibrary/archive/v${pkgver}.tar.gz")
sha256sums=('ea283132caae7a62c96dedb40d0fcff25d3067191411987db9c2d780286a2108')

package() {
  cd "${srcdir}/${_dir}"

  # Install headers
  install -d "${pkgdir}${MINGW_PREFIX}/include/cusp"
  cp -r "cusp" "${pkgdir}${MINGW_PREFIX}/include"
  install -Dm644 ${srcdir}/${_realname}library-${pkgver}/LICENSE ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
}
